from django.db import models


class Page(models.Model):
 topic = models.CharField(max_length=100)
 body = models.TextField()

class Categories(models.Model):
 title = models.CharField(max_length=100)
 
class Post(models.Model):
 title = models.CharField(max_length=100)
 body = models.TextField()
 created = models.DateTimeField()
 Categories=models.ForeignKey(Categories)
 
 
#def __unicode__():
 #return Page.topic
 #return Categories.title
 #return Post.title



# Create your models here.
